import { GSprite } from "../../../../../../com/mui/controls/GSprite";
import { Language } from "../../../../../../extend/language/Language";
import { DataProvider } from "../../../../../../fl/data/DataProvider";
import { ObjCreate } from "../../../common/ObjCreate";
import { ImagesConst } from "../../../../resource/ImagesConst";
import { PageSelecter } from "../../../common/pageSelect/PageSelecter";
import { GCheckBox } from "../../../../../../com/mui/controls/GCheckBox";
import { GTextFiled } from "../../../../../../com/mui/controls/GTextFiled";
import { GTileList } from "../../../../../../com/mui/controls/GTileList";
type int = number;
//class CrossGuildWarScheduleBase
    
    export  class CrossGuildWarScheduleBase extends GSprite
    {
        constructor()
        {
            super();
            return;
        }

        public getCurPage(): int
        {
            return this._pageSelector.currentPage;
        }

        public updateMaxPageShow(arg1: int): void
        {
            this._pageSelector.maxPage = arg1;
            return;
        }

        public updateGuildPlace(arg1: int): void
        {
            this._txtGuildPlace.text = Language.getStringByParam(80556, arg1);
            return;
        }

        public updateGuildNum(arg1: int): void
        {
            this._txtGuildNum.text = Language.getStringByParam(80557, arg1);
            return;
        }

        public updateData(arg1: DataProvider): void
        {
            this._data = arg1;
            this._list.dataProvider = arg1;
            this._list.drawNow();
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            ObjCreate.createBg(0, 0, 802, 488, this);
            ObjCreate.createBg(10, 28, 785, 1, this, ImagesConst.SplitLine);
            this._txtGuildPlace = ObjCreate.createGTextField("", 34, 495, 200, 20, this);
            this._txtGuildPlace.textColor = 65280;
            this.updateGuildPlace(32);
            this._pageSelector = ObjCreate.createPageSelecter(350, 495, this, PageSelecter.CompleteMode);
            this._pageSelector.configEventListener(flash.events.Event.CHANGE, this.pageChangeHandler);
            this._txtGuildNum = ObjCreate.createGTextField("", 585, 499, 200, 20, this);
            this._txtGuildNum.textColor = 65280;
            this.updateGuildNum(1);
            return;
        }

        protected pageChangeHandler(arg1: Object /* flash.events.Event */): void
        {
            return;
        }

        public static /* const */PageSize: int=10;

        protected /* var */_cbOnlyShowSelfGuild: GCheckBox;

        protected /* var */_txtGuildPlace: GTextFiled;

        protected /* var */_txtGuildNum: GTextFiled;

        protected /* var */_pageSelector: PageSelecter;

        protected /* var */_data: DataProvider;

        protected /* var */_list: GTileList;
    }
